store.js ➔ ???   A
last analyzed

Complexity

Conditions 1
Paths 0

Size

Total Lines 1
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 1
rs 10
c 0
b 0
f 0
cc 1
nop 1
nc 0
1
import { createStore, applyMiddleware, compose } from 'redux'
2
import thunkMiddleware from 'redux-thunk'
3
// import { createLogger } from 'redux-logger'
4
import rootReducer from './reducer/root.js'
5
// import createSagaMiddleware from 'redux-saga'
6
// import rootSaga from './saga.js'
7
8
// const sagaMiddleware = createSagaMiddleware()
9
10
export const store = createStore(
11
  rootReducer,
12
  compose(
13
    applyMiddleware(thunkMiddleware /* , sagaMiddleware, createLogger() */),
14
    (window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()) || (f => f)
15
  )
16
)
17
18
// sagaMiddleware.run(rootSaga)
19